package com.hzw.saas.common.config.configuration.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import lombok.Data;

/**
 * @Description
 * @Date 2021/6/29 2:41 下午
 * @Created by sonam
 */
@Component
@ConfigurationProperties(value = SaasExceptionProperties.PREFIX, ignoreInvalidFields = true, ignoreUnknownFields = true)
@Data
public class SaasExceptionProperties {

    public static final String PREFIX = "saas.exception";

    /**
     * 500-异常输出前端，默认不输出前端
     */
    private boolean outputTrack = false;

    /**
     * 500-异常不输出前端时，输出一下内容到前端
     */
    private String outputMsg = "服务器繁忙";

}
